package com.pine.dbant.core.model.vo;

import com.pine.dbant.common.model.ITree;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import java.util.List;

/**
 * @author xiaoyuan
 * @create 2023/2/3 10:39
 **/
@Setter
@Getter
public class ConnTreeVO implements ITree<DirTreeVO, Long> {

    /**
     * id
     */
    private Long id;

    /**
     * 连接id：连接名字
     */
    @NotBlank(message = "连接名字不能为空")
    private String name;
    /**
     * 数据源类型
     */
    @NotBlank(message = "数据源类型不能为空")
    private String dsType;

    /**
     * ip
     */
    @NotBlank(message = "ip不能为空")
    private String host;

    @Override
    public Long getParentId() {
        return null;
    }

    @Override
    public void setChildren(List<DirTreeVO> list) {

    }

    @Override
    public List<DirTreeVO> getChildren() {
        return null;
    }
}
